import service from "@/utils/https";

//查询设备ota信息
export function GetOtaByMountAPI(params: any) {
    return service({
        method: "GET",
        url: "/ota/one",
        params
    });
}

//修改服务配置端口
export function UpdateOtaPortAPI(data: any) {
    return service({
        method: "POST",
        url: "/ota/editPort",
        data
    });
}

//开启/关闭服务
export function UpdateOtaStatusAPI(data: any) {
    return service({
        method: "POST",
        url: "/ota/startOrClose",
        data
    });
}

//获取服务配置信息
export function GetOtaConfigAPI() {
    return service({
        method: "GET",
        url: "/ota/serverInfo"
    });
}